package com.own.core.html.form.password;

import org.apache.wicket.markup.html.form.PasswordTextField;
import org.apache.wicket.markup.html.form.TextField;
import org.apache.wicket.model.IModel;

import com.own.core.html.OwnPatternValidator;


public class OwnPassword  extends PasswordTextField {

	
	Password password;

	public OwnPassword(String id) {
		super(id);

		// add(new ValidationStyleBehavior());
	}

	public OwnPassword(final String id, final IModel model) {
		super(id, model);

	}

	/**
	 * @param id
	 * @param model
	 * @see org.apache.wicket.Component#Component(String, IModel)
	 */
	public OwnPassword(final String id, final IModel model, Password password) {
		super(id, model);
		this.password = password;
		this.add(new OwnPatternValidator( password.validate()));
		 
	}

	
 

}
